package org.example.config;

import org.springframework.data.redis.core.BulkMapper;

import java.util.List;

public class MyBulkMapper implements BulkMapper<Integer,String> {
    @Override
    public Integer mapBulk(List tuple) {
        Integer integer = 0;
        for (int i = 0; i < tuple.size(); i++) {
            integer += Integer.parseInt(tuple.get(i).toString());
        }
        return integer;
    }
}
